#ifndef MYTCPSOCKET_H
#define MYTCPSOCKET_H

#include<QTcpSocket>
#include<QDebug>
#include<QMessageBox>
#include"db.h"
#include"protocol.h"

class MyTcpSocket : public QTcpSocket
{
    Q_OBJECT
public:
    MyTcpSocket();
signals:
    void offline(MyTcpSocket* clientsocket);

public slots:
    void recvmsg();
    void clientOffline();
private:
    QString m_username;

};

#endif // MYTCPSOCKET_H
